#!/home/xuguoqun/anaconda3/bin/python
# -*- coding: utf-8 -*-
# @CreateTime    : 2020/5/18 19:23
# @Author  : xuguoqun
# @Email   : gqxu@a-y.com.cn
# @File    : Time.py
# @Company: Nanjing-Anyuan
import datetime


class Time(object):
    def __init__(self):
        self.today = datetime.date.today()
        self.yesterday = self.today - datetime.timedelta(days=1)
    def available(self):
        today = str(self.today) + ' 00:00:00'
        yesterday = str(self.yesterday) + ' 00:00:00'
        return yesterday,today
